#ifndef PROTOCOL_CLIENT_H
#define PROTOCOL_CLIENT_H

/** @file protocol_client.h
 *  @brief Geolocation Project - Client Protocol Header - ENSEIRB RSR 2007, 
 *  everything is under GNU GPL v3 or later
 */

/// Client ID buffer size : 32 bytes + '\0'
#define PROTOCOL_CLIENT_MAC_SZ 33

/// Status Packet format string used by Clients, providing their location (do not forget '\\0' at the end)
#define PROTOCOL_CLIENT_SP_FORMAT "%32[^,],%lf,%lf,%ld,%ld,%d"

/// Alternative version (mainly used for sprintf purposes)
#define PROTOCOL_CLIENT_SP_FORMAT_ALT "%s,%lf,%lf,%ld,%ld,%d"

/// Standard error packet sent by Servers to Clients
#define PROTOCOL_CLIENT_ERROR "ERROR,%d"

/// Standard redirect packet sent by Servers to Clients
#define PROTOCOL_CLIENT_REDIRECT "REDIRECT,%s"

#endif
